import { axios } from '@/utils/request'
// 社保缴交订单
export function getTablePage(parameter) {
  return axios({
    url: '/sys/hr/insure/order/pageInsureStaff',
    method: 'post',
    data: parameter
  })
}
export function getTableDetailPage(parameter) {
  return axios({
    url: '/sys/hr/insure/order/pageInsureOrderStaff',
    method: 'post',
    data: parameter
  })
}
export function parkRelation(id) {
  return axios({
    url: '/sys/hr/enterprise/parkRelation/' + id,
    method: 'get',
  })
}
export function listEnterpriseBizType(id) {
  return axios({
    url: '/sys/hr/enterpriseFee/listEnterpriseBizType/' + id,
    method: 'get',
  })
}
export function createInsureOrder(parameter) {
  return axios({
    url: '/sys/hr/insure/order/createInsureOrder',
    method: 'post',
    data: parameter
  })
}
export function copyInsureOrder(parameter) {
  return axios({
    url: '/sys/hr/insure/order/copyInsureOrder',
    method: 'post',
    data: parameter
  })
}
export function submitInsureOrder(parameter) {
  return axios({
    url: '/sys/hr/insure/order/submitInsureOrder',
    method: 'post',
    data: parameter
  })
}
export function deleteInsureOrder(parameter) {
  return axios({
    url: '/sys/hr/insure/order/deleteInsureOrder',
    method: 'post',
    data: parameter
  })
}
export function editInsureOrderStaffFee(parameter) {
  return axios({
    url: '/sys/hr/insure/order/editInsureOrderStaffFee',
    method: 'post',
    data: parameter
  })
}
export function deleteInsureOrderStaff(parameter) {
  return axios({
    url: '/sys/hr/insure/order/deleteInsureOrderStaff',
    method: 'post',
    data: parameter
  })
}
export function getOrderStaffInsureNo(id) {
  return axios({
    url: '/sys/hr/insure/order/getOrderStaffInsureNo/' + id,
    method: 'get',
  })
}
export function insureOrderAddStaff(parameter) {
  return axios({
    url: '/sys/hr/insure/order/insureOrderAddStaff',
    method: 'post',
    data: parameter
  })
}
export function insureOrderStaffCustomFee(parameter) {
  return axios({
    url: '/sys/hr/insure/order/insureOrderStaffCustomFee',
    method: 'post',
    data: parameter
  })
}
export function orderStatisticsInfo(insureOrderId) {
  return axios({
    url: `/sys/hr/insure/order/statisticsInfo/${insureOrderId}`,
    method: 'get'
  })
}
export function exportInsureOrderStaff(parameter) {
  return axios({
    url: '/sys/hr/insure/order/exportInsureOrderStaff',
    method: 'post',
    data: parameter,
    responseType: 'blob'
  })
}
export function exportInsureOrder(parameter) {
  return axios({
    url: '/sys/hr/insure/order/exportInsureOrder',
    method: 'post',
    data: parameter,
    responseType: 'blob'
  })
}
export function orderStaffExcelTemplate(parameter) {
  return axios({
    url: '/sys/hr/insure/order/orderStaffExcelTemplate',
    method: 'post',
    data: parameter,
    responseType: 'blob'
  })
}
export function downloadOrderStaffCustomFeeExcelTemplate() {
  return axios({
    url: '/sys/hr/insure/order/downloadOrderStaffCustomFeeExcelTemplate',
    method: 'get',
    responseType: 'blob'
  })
}
